<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1 th:text="${msg}">Hello</h1>
    <p th:text="${driver.name}">name</p>
    <a href="show.html"
       th:href="@{http://localhost:8888/show(name=${driver.name})}"
        th:text="|Show ${driver.name}|">Show</a>
<!--    <span th:if="${driver.age} &gt; 18" th:text="|${driver.name} 是成年人|"></span>-->
<!--    <span th:if="${driver.age} &lt; 18" th:text="|${driver.name} 是未成年人|"></span>-->
    <span th:text="${driver.name}+'是'+((${driver.age}>=18)?'成年人':'未成年人')"></span>

    <table width="500px" border="1px">
        <tr th:each="car:${cars}">
            <td th:text="${car.number}"></td>
            <td th:text="${car.brand}"></td>
            <td th:text="${car.color}"></td>
        </tr>
    </table>
</body>
</html>